package com.lzx.adx.report.enums;

public enum MongAcCovetHwEventTypeEnums {

    ACTIVATE_APP("0","activate","激活"),
    RETENTION("4","retain","次留"),
    LAUNCH("3","reEngage","应用唤起"),
    REGISTER("1","register","注册"),
    paid("2","paid","付费");

    private String code;

    private String outCode;

    private String desc;


    MongAcCovetHwEventTypeEnums(String code, String outCode, String desc) {
        this.code = code;
        this.outCode = outCode;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getOutCode() {
        return outCode;
    }


    public static String getOutCode(String elmCode){
        for (MongAcCovetHwEventTypeEnums value : MongAcCovetHwEventTypeEnums.values()) {
            if(value.getCode().equals(elmCode)){
                return value.getOutCode();
            }
        }
        return  null;
    }

}
